-
Notifications
You must be signed in to change notification settings - Fork 7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Misc lint fixes #1020
Misc lint fixes #1020
Conversation
@@ -101,7 +101,7 @@ def __len__(self): | |||
collate_fn=lambda x: x[0]) | |||
aspect_ratios = [] | |||
with tqdm(total=len(dataset)) as pbar: | |||
for i, (img, _) in enumerate(data_loader): | |||
for _i, (img, _) in enumerate(data_loader): | |||
pbar.update(1) | |||
height, width = img.shape[-2:] | |||
aspect_ratio = float(height) / float(width) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@fmassa Shouldn't aspect_ratio
be width/height
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the important thing in here is for it to be consistent between all the implementations, and I don't think it will change anything in this particular case.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well, it just looks weid to understand because it is different from other definition.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
which definition?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe we can change this definition here without breaking the rest of the code. I would be willing to merge a PR that do this change.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Those minor lint issues were caught when running tests in fb